import request from '@/utils/request'
export const getpermission = () => {
  return request({
    url: '/sys/permission'
  })
}
// 删除权限点
export const delpeimission = id => {
  return request({
    url: `/sys/permission/${id}`,
    method: 'DELETE'
  })
}
// 新增权限
export const addpermission = data => {
  return request({
    url: '/sys/permission',
    method: 'POST',
    data
  })
}
// 编辑权限
export const editpermission = data => {
  return request({
    url: `/sys/permission/${data.id}`,
    method: 'PUT',
    data
  })
}
